package com.xinshujia.test;

import com.google.gson.annotations.JsonAdapter;
import com.xinshujia.configuration.adapter.LocalDateTimeAdapter;
import com.xinshujia.configuration.adapter.TimestampAdapter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-26 15:14       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 */
public class AccelerationStatisticsDTO {
    private String id;
    private Integer channel;
    private String unit;
    private Integer sampling;
    private Double freqResolution;
    private Double peak;
    private Double valley;
    private Double peakpeak;
    private Double meaning;
    private Double rms;
    private Integer collisionDetectionResult;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonAdapter(TimestampAdapter.class)
    private LocalDateTime time;
    private Byte is_rowDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getSampling() {
        return sampling;
    }

    public void setSampling(Integer sampling) {
        this.sampling = sampling;
    }

    public Double getFreqResolution() {
        return freqResolution;
    }

    public void setFreqResolution(Double freqResolution) {
        this.freqResolution = freqResolution;
    }

    public Double getPeak() {
        return peak;
    }

    public void setPeak(Double peak) {
        this.peak = peak;
    }

    public Double getValley() {
        return valley;
    }

    public void setValley(Double valley) {
        this.valley = valley;
    }

    public Double getPeakpeak() {
        return peakpeak;
    }

    public void setPeakpeak(Double peakpeak) {
        this.peakpeak = peakpeak;
    }

    public Double getMeaning() {
        return meaning;
    }

    public void setMeaning(Double meaning) {
        this.meaning = meaning;
    }

    public Double getRms() {
        return rms;
    }

    public void setRms(Double rms) {
        this.rms = rms;
    }

    public Integer getCollisionDetectionResult() {
        return collisionDetectionResult;
    }

    public void setCollisionDetectionResult(Integer collisionDetectionResult) {
        this.collisionDetectionResult = collisionDetectionResult;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Byte getIs_rowDate() {
        return is_rowDate;
    }

    public void setIs_rowDate(Byte is_rowDate) {
        this.is_rowDate = is_rowDate;
    }
}
